package com.rad.datastat.receiver;

import com.rad.datastat.service.DatastatService;
import com.rad.net.protocol.android.utils.LogUtils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class BootReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent != null) {
			if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
				LogUtils.e("RadStatistics", "BootReceiver startDatastatService");
				Intent i = new Intent(context, DatastatService.class);
				context.startService(i);
			}
		}
	}
}
